<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>充值管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {

		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/recharge/siteUserRecharge/">充值列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="siteUserRecharge" action="${ctx}/recharge/siteUserRecharge/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li>
				<label>系统流水号：</label>
				<form:input path="orderIdConf" htmlEscape="false" maxlength="50" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>编号</th>
				<th>系统流水号</th>
				<th>三方流水号</th>
				<th>用户编号</th>
				<th>充值金额</th>
				<th>期初金额</th>
				<th>期末金额</th>
				<th>状态</th>
				<th>认购产品编号</th>
				<th>认购说明</th>
				<th>充值方式</th>
				<th>充值银行卡号</th>
				<th>申请时间</th>
				<th>三方处理时间</th>
				<shiro:hasPermission name="recharge:siteUserRecharge:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="siteUserRecharge" varStatus="s">
			<tr>
				<td>${s.index + 1}</td>
				<td>${siteUserRecharge.orderId}</td>
				<td>${siteUserRecharge.tradeNo}</td>
				<td>${siteUserRecharge.userId}</td>
				<td>${siteUserRecharge.amount}</td>
				<td>${siteUserRecharge.initialAmount}</td>
				<td>${siteUserRecharge.finalAmount}</td>
				<td>${siteUserRecharge.status == 0 ? "申请中" : siteUserRecharge.status == 1 ?"充值中" : siteUserRecharge.status == 2 ?"成功" :siteUserRecharge.status == 3 ?"失败" :siteUserRecharge.status == 4 ?"其他" :""}</td>
				<td>${siteUserRecharge.productId}</td>
				<td>${siteUserRecharge.info}</td>
				<td>${siteUserRecharge.type == 1 ? "快捷" : siteUserRecharge.type == 2 ?"网银":""}</td>
				<td>${siteUserRecharge.bankCard}</td>
				<td><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${siteUserRecharge.createTime}"></fmt:formatDate></td>
				<td><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${siteUserRecharge.replyTime}"></fmt:formatDate></td>
				<shiro:hasPermission name="recharge:siteUserRecharge:edit"><th>查看详情</th></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>